<?php
/* @var $this NewsController */
/* @var $model News */

$this->breadcrumbs=array(
	'News'=>array('index'),
	$model->news_id,
);

$this->menu=array(
	array('label'=>'新闻列表', 'url'=>array('index')),
	array('label'=>'写新闻', 'url'=>array('create')),
	array('label'=>'编辑新闻', 'url'=>array('update', 'id'=>$model->news_id)),
	array('label'=>'删除新闻', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->news_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'管理新闻', 'url'=>array('admin')),
);
?>

<h1>查看新闻 #<?php echo $model->news_id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,

	'attributes'=>array(
		'news_id',
        array(
            'label' => CHtml::activeLabel($model,'news_type'),
            'value' => NewsType::model()->getTypeName($model->news_type),
        ),
		'news_title',
		'news_content',
        array(
                'label' => CHtml::activeLabel($model,'news_add_time'),
                'value' => date("Y-m-d",$model->news_add_time),
        ),
	),
)); ?>
